import { postRequest, getRequest, deleteRequest } from '/@/lib/axios';

// 查询大本营信息列表
export function listDabenyinginfo(query) {
  return getRequest('/DabenyingSys/Dabenyinginfo/list', query)
}

// 查询大本营信息详细
export function getDabenyinginfo(name) {
  return getRequest(`/DabenyingSys/Dabenyinginfo/${name}`)
}

// 新增大本营信息
export function addDabenyinginfo(data) {
  return postRequest('/DabenyingSys/Dabenyinginfo', data)
}

// 修改大本营信息
export function updateDabenyinginfo(data) {
  return postRequest('/DabenyingSys/Dabenyinginfo', data)
}

// 删除大本营信息
export function delDabenyinginfo(name) {
  return deleteRequest(`/DabenyingSys/Dabenyinginfo/${name}`)
}
